<div >
    <div class="container font" style="color: black">
        <div class="row">
            <div class="header-bottom-wrap">
                <div class="main-menu-wrap col-lg-12 col-md-12  pull-left" style="min-width: 1170px">
                    <div class="main-menu">
                        <nav>
                            <ul class="col-md-12">
                                <li class="pull-left m-t-20">
                                    <div class="logo"><a href="{{url('/')}}"><img src="{{cdn('/assets/img/logo-2.png')}}" alt="logo" width="80" height="40"/></a></div>
                                </li>
                                <li>
                                    <a href="{{url('/forum')}}">社区</a>
                                </li>
                                <li class="pull-right">
                                    @if (Auth::check())
                                        <a>
                                            <img src="{{cdn(Auth::user()->profile)}}" class="minheadimg">
                                            <span class="p-l-5">{{Auth::user()->name}}</span>
                                            <i class="zmdi zmdi-chevron-down" style="margin-top: 8px"></i>
                                        </a>
                                        <div class="mega-menu mm-1-column w-120 p-15 p-t-20">
                                            <div class="mm-column mm-column-link float-left p-5 w100">
                                                <h3>{{Auth::user()->name}}</h3>
                                                <a href="{{url('/user/info/'.Auth::user()->id)}}">个人信息</a>
                                                <a href="{{url('/user/edit')}}">用户设置</a>
                                                @if (Auth::user()->userRole->role->flag > 0)
                                                    <a href="{{url('/admin/index')}}">管理面板</a>
                                                @endif
                                                <a href="#" onclick="event.preventDefault();document.getElementById('logout-form').submit();">退出</a>
                                                <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                                                    {{ csrf_field() }}
                                                </form>
                                            </div>
                                        </div>
                                    @else
                                        <a>
                                            <img src="{{asset('/assets/img/log-default-avatar.png')}}" class="minheadimg">
                                            <i class="zmdi zmdi-chevron-down m-t-5"></i>
                                        </a>
                                        <div class="mega-menu" style="width: 120px; height: auto;padding: 10px 10px; margin: auto auto">
                                            <div class="mm-column mm-column-link">
                                                <div class="m-t-20">
                                                    <a href="{{url('/steam/login')}}" class="btn btn-inverse btn-xs">
                                                        <i class="fa fa-steam-square"></i>Steam登录
                                                    </a>
                                                </div>
                                                <div class="m-t-10">
                                                    <a href="{{url('/login')}}" class="btn btn-success btn-lg" style="line-height: 1;margin-top: 10px">登陆</a>
                                                </div>
                                                <div class="m-t-10">
                                                    <a href="{{url('/steam/register')}}" class="btn btn-danger btn-lg" style="line-height: 1;margin-top: 10px">注册</a>
                                                </div>
                                            </div>
                                        </div>
                                    @endif
                                </li>
                                <li class="pull-right m-t-25 m-l-20">
                                    <a href="{{url('/notifications')}}" style="margin-top: -4px;">
                                        <button class="btn btn-inverse tooltip-danger nov" style="@if (Auth::check() && Auth::user()->notification_count > 0 )
                                                background-color:#cd4237
                                        @endif" data-toggle="tooltip" data-placement="bottom" data-original-title="消息提醒">{{isset(Auth::user()->notification_count) ? Auth::user()->notification_count : 0}}
                                        </button>
                                    </a>
                                </li>
                                <li class="pull-right m-r-0 m-l-20 m-t-15">
                                    <a  href="{{url('/topic/create')}}">
                                        <button class="btn btn-inverse tooltip-danger bb" style="border: none;margin-top: -15px;margin-right: 0;" data-toggle="tooltip" data-placement="bottom" data-original-title="创建主题">
                                            <i class="fa fa-plus" style="margin-top: 5px"></i>
                                        </button>
                                    </a>
                                </li>
                                <li class="pull-right m-t-20">
                                    <div class="prepend-icon">
                                        <input type="text" class="form-control input-sm" placeholder="搜索">
                                        <i class="fa fa-search"></i>
                                    </div>
                                </li>
                            </ul>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>